package App.Utils.Security;

import org.springframework.stereotype.Component;

/**
 * 解密类
 * Created by yu on 2017/7/8.
 */
@Component
public class Decrypt
{
    //解密加密的密码
    public static boolean checkPassword(String password,String encryptedPsw)
    {
        return encryptedPsw.equals(Encrypt.encryptPassword(password));
    }

}
